<?php
/*
 * @Author: 哲学家乔布斯 <wuyangii@qq.com>
 * @Date: 2022-10-25 20:19:21
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-10-25 20:22:43
 * @Descripttion: 
 */


namespace app\common\model;

use think\Model;

class AgentEwmGoods extends Base
{
    protected $insert = ['addtime','image'];
    protected $update = ['image'];

    //---------------自动完成----------------------
    protected function setAddtimeAttr()
    {
        return time();
    }
    public function getAddtimeTextAttr($value, $data){
        return date('Y-m-d H:i:s', $data['addtime']);
    }
    public function getIsOutboundTextAttr($value, $data){
        $arr = [0 => '未扫码' ,1 => '已扫码'];
        return $arr[$data['is_outbound']];
    }

  
}
